package com.qyhl.school.school.center.activity;



import com.qyhl.webtv.commonlib.entity.school.SchoolReporterActBean;

import java.util.List;

public class SchoolCenterActPresenter implements SchoolCenterActContract.SchoolCenterActPresenter {
    private SchoolCenterActContract.SchoolCenterActView mView;
    private SchoolCenterActModel mModel;

    public SchoolCenterActPresenter(SchoolCenterActContract.SchoolCenterActView mView) {
        this.mView = mView;
        this.mModel = new SchoolCenterActModel(this);
    }

    @Override
    public void getList(String username, int lastId) {
        mModel.getList(username, lastId);
    }

    @Override
    public void setList(List<SchoolReporterActBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
